package com.taobao.wolfwolf.tmp;

import java.text.SimpleDateFormat;
import java.util.Calendar;

import org.apache.log4j.Logger;

import com.taobao.api.DefaultTaobaoClient;
import com.taobao.api.TaobaoClient;
import com.taobao.api.request.LogisticsTraceSearchRequest;
import com.taobao.api.response.LogisticsTraceSearchResponse;

public class Test {

	private static Logger logger = Logger.getLogger(Test.class);
	/**
	 * <p></p>
	 * @param args
	 */
	public static void main(String[] args) {
		SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
		String date = format.format(Calendar.getInstance().getTime());
		
		int count = 987;
		
		String count_str = String.valueOf(count);
		
		if(count_str.length() == 1) {
			count_str = "000" + count_str;
		} else if(count_str.length() == 2) {
			count_str = "00" + count_str;
		} else if(count_str.length() == 3) {
			count_str = "0" + count_str;
		}
		
		System.out.println(date + count_str);
	}

}
